﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Checkout.aspx.cs" Inherits="Webbshop.Checkout" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <h1><asp:Label ID="lblTitle" runat="server" Text="Kassa" 
                meta:resourcekey="lblTitleResource1" /></h1>
        <p>
            <asp:Label ID="lblIntroduction" runat="server" 
                Text="Här kan se granska din Beställning och gå vidare till Betalning." 
                meta:resourcekey="lblIntroductionResource1" />
        </p>
        <p>
            <asp:Label ID="lblNoProducts" runat="server" Font-Italic="True" 
                meta:resourcekey="lblNoProductsResource1" />
            <asp:DataList ID="dataCart" runat="server" OnItemCommand="dataCart_ItemCommand" 
                OnItemCreated="dataCart_ItemCreated" meta:resourcekey="dataCartResource1">
                <ItemTemplate>
                    <%# Eval("key.Name") %> <%# Eval("value") %>  <asp:button ID="btnDelete" 
                        runat="server" Text="Ta bort" CommandName="Delete" 
                        meta:resourcekey="btnDeleteResource1" />
                </ItemTemplate>
                <FooterTemplate>
                    <p>
                        <asp:Button ID="btnBuy" runat="server" Text="Genomför Köp" CommandName="Buy" 
                            meta:resourcekey="btnBuyResource1" />
                    </p>
                </FooterTemplate>
            </asp:DataList>
        </p>
        
    </div>
</asp:Content>
